<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-store"/>
    <meta http-equiv="Expires" content="0" />
    <meta charset="utf-8" />

    <title>用户登录</title>
    <link th:href="@{/H-UI/static/h-ui/css/H-ui.min.css}" rel="stylesheet" type="text/css" />
    <link th:href="@{/H-UI/static/h-ui/css/H-ui.login.css}" rel="stylesheet" type="text/css" />
    <link th:href="@{/H-UI/static/h-ui.admin/css/style.css}" rel="stylesheet" type="text/css" />
    <link th:href="@{/H-UI/lib/Hui-iconfont/1.0.8/iconfont.css}" rel="stylesheet" type="text/css" />

</head>
<body>


<div class="header"></div>
<div class="loginWraper">
    <div  class="loginBox">
        <form class="form form-horizontal" id="loginForm" th:action="@{/login}" method="post">
            <div class="row cl">
                <label class="form-label col-xs-3"></label>
                <div class="formControls col-xs-8">
                   <h3>欢迎使用YYC</h3>
                </div>
            </div>
            <div class="row cl" style="display: none;">
                <label class="form-label col-xs-3"></label>
                <div class="formControls col-xs-8">
                    <div th:if="${param.error}">
                        <input th:value="无效的用户或密码！" id="errorMsg" type="hidden"/>
                    </div>
                    <div th:if="${param.logout}">
                        <input th:value="你已经退出！" id="errorMsg" type="hidden"/>
                    </div>
                    <!--<div th:if="${#httpServletRequest.remoteUser != null}">-->
                        <!--<input th:value="${#httpServletRequest.remoteUser}" id="errorMsg" type="hidden"/>-->
                    <!--</div>-->
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
                <div class="formControls col-xs-8">
                    <input id="username" name="username" type="text" placeholder="您的用户名" value="admin" class="input-text size-L"/>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
                <div class="formControls col-xs-8">
                    <input id="password" name="password" type="password" placeholder="登录密码" value="123456" class="input-text size-L"/>
                </div>
            </div>
            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <input class="input-text size-L" id="checkCode" type="text" placeholder="验证码"   style="width:150px;"/>
                    <img src="" onclick="reloadImg();" style="height: 30px;width: 70px;" th:src="@{/images/imagecode}" id="validateImg"/>
                    <a id="kanbuq" href="javascript:;" onclick="reloadImg();">看不清，换一张</a>
                </div>
            </div>
            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <label id="re-me">
                        <input type="checkbox" id="remember-me" name="remember-me" value="0" onclick="if(this.checked){this.value = 1}else{this.value=0}"/>
                        使我保持登录状态</label>
                </div>
            </div>
            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <input name="" type="button" onclick="verSubmit()" class="btn btn-success  size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;"/>
                    <input name="" type="reset" class="btn btn-default  size-L" value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;"/>
                </div>
            </div>
        </form>
    </div>
</div>

<input th:value="${errorMsg}" id="errorMsg" type="hidden"/>

<script type="text/javascript" th:src="@{/H-UI/lib/jquery/1.9.1/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/H-UI/lib/layer/2.4/layer.js}"></script>
<script type="text/javascript" th:src="@{/H-UI/static/h-ui/js/H-ui.js}"></script>

<script type="text/javascript" th:src="@{/scripts/public/login.js}"></script>
</body>
</html>
